<template>
	<view class="note-content">
		<view 
			class="note-item" 
			v-for="item in bizCourseAttachments"
			:key="item.id"
		>
			<u-icon class="icon-book" name="file-text" color="#303133" size="20"></u-icon>
			<view class="note-name">{{ item.attachmentName }}</view>
			<u-icon class="icon-down" name="download" color="#303133" size="20"></u-icon>
		</view>
	</view>
</template>

<script>
	export default {
		props:{
			bizCourseAttachments:{
				type:Array,
				default() {
					return []
				}
			}
		},
		mounted() {
			// console.log(this.bizCourseAttachments,'看看结果')
		}
	}
</script>

<style lang="scss" scoped>
	.note-item {
		display: flex;
		align-items: center;
		padding: 0 30rpx;
		height: 80rpx;
		line-height: 80rpx;
		font-size: 30rpx;
		margin-top: 6rpx;
		.icon-book {
			padding-right: 16rpx;
		}
		.note-name {
			flex:1;
			overflow: hidden;
			text-overflow: ellipsis;
			white-space: nowrap;
			font-size: 26;
			color:#303133;
		}
	}
</style>